import { Application } from 'egg';

export default (app: Application) => {
    const {router} = app;
    router.redirect('/', '/users/list', 302);
    //拆分路由,引入各路由模块
    require('./router/users')(app);
    require('./router/role')(app)
};
